  {php $CATEGORY = cache_read('category-'.$mid.'.php');}
    {php $child = get_maincat(0, $CATEGORY, 1);}

	      <div class="category-list">
          
          
          
                 <dl class="category c-industry" id="c-industry">
					<dt><strong>原材料</strong></dt>
					<dd >
                        <ul class="category-row"> 
                        {loop $child $i $c}
                       {if in_array($c[catid], array(12 , 42 , 47 , 67 , 72 ,87 , 92))}
			{if $i%2==0}<li class="w1-left">{else}<li class="w1-right">{/if}
                  <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="orange m14 mr8 b" target="_blank">{set_style($c[catname], $c[style])}</a>
	                  		{if $c[child]}
	                  		{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
	                  		{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="blue m14 mr8 b" target="_blank">{set_style($s[catname], $s[style])}</a> {/if}{/loop}
	                  		{/if}
							<ul class="category-cell clr">
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
                        {loop $sub $j $s}
                           <li><A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A></li>
                        {/loop}
                        {/if}
							  {if $j>8}<li class="nobd"><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank" class="last" >更多</a></li>{/if}
							</ul>	
                           {if $i%2==1}</li>{/if}    
                        {/if}
                        {/loop}
                         </ul> 
					</dd>
				</dl>
                
                
                
                
                  <dl class="category c-consumable" id="c-consumable">
					<dt><strong>消费品</strong></dt>
					<dd >
                        <ul class="category-row"> 
                        {loop $child $i $c}
                       {if in_array($c[catid], array(2 ,7, 22 , 27,  37 , 52, 57 , 62,  77 , 87 , 137))}
			{if $i%2==0}<li class="w1-left">{else}<li class="w1-right">{/if}
                  <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="orange m14 mr8 b" target="_blank">{set_style($c[catname], $c[style])}</a>
	                  		{if $c[child]}
	                  		{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
	                  		{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="blue m14 mr8 b" target="_blank">{set_style($s[catname], $s[style])}</a> {/if}{/loop}
	                  		{/if}
							<ul class="category-cell clr">
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
                        {loop $sub $j $s}
                           <li><A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A></li>
                        {/loop}
                        {/if}
							  {if $j>8}<li class="nobd"><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank" class="last" >更多</a></li>{/if}
							</ul>	
                           {if $i%2==1}</li>{/if}    
                        {/if}
                        {/loop}
                         </ul> 
					</dd>
				</dl>
                
                
                
                
                 <dl class="category c-material" id="c-material">
					<dt><strong>工业品</strong></dt>
					<dd >
                        <ul class="category-row"> 
                        {loop $child $i $c}
                      {if in_array($c[catid], array(17 ,32 , 102 , 107 , 1474,  1476, 1509  ,1525  ,1612))}
			{if $i%2==0}<li class="w1-left">{else}<li class="w1-right">{/if}
                  <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="orange m14 mr8 b" target="_blank">{set_style($c[catname], $c[style])}</a>
	                  		{if $c[child]}
	                  		{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
	                  		{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="blue m14 mr8 b" target="_blank">{set_style($s[catname], $s[style])}</a> {/if}{/loop}
	                  		{/if}
							<ul class="category-cell clr">
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
                        {loop $sub $j $s}
                           <li><A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A></li>
                        {/loop}
                        {/if}
							  {if $j>8}<li class="nobd"><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank" class="last" >更多</a></li>{/if}
							</ul>	
                           {if $i%2==1}</li>{/if}    
                        {/if}
                        {/loop}
                         </ul> 
					</dd>
				</dl>
                
                
                
                
                 <dl class="category c-service" id="c-service">
					<dt><strong>其他</strong></dt>
					<dd >
                        <ul class="category-row"> 
                        {loop $child $i $c}
                       {if in_array($c[catid], array(82 ,97,  112 , 127  , 132,  142, 1485,   1507 , 1584))}
			{if $i%2==0}<li class="w1-left">{else}<li class="w1-right">{/if}
                  <a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" class="orange m14 mr8 b" target="_blank">{set_style($c[catname], $c[style])}</a>
	                  		{if $c[child]}
	                  		{php $sub = get_maincat($c[catid], $CATEGORY, 2);}
	                  		{loop $sub $j $s}{if $j < 5} <a href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" class="blue m14 mr8 b" target="_blank">{set_style($s[catname], $s[style])}</a> {/if}{/loop}
	                  		{/if}
							<ul class="category-cell clr">
                        {if $c[child]}{php $sub = get_maincat($c[catid], $CATEGORY, 3);}
                        {loop $sub $j $s}
                           <li><A href="{$MODULE[$mid][linkurl]}{$s[linkurl]}" target="_blank">{set_style($s[catname], $s[style])}</A></li>
                        {/loop}
                        {/if}
							  {if $j>8}<li class="nobd"><a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank" class="last" >更多</a></li>{/if}
							</ul>	
                           {if $i%2==1}</li>{/if}    
                        {/if}
                        {/loop}
                         </ul> 
					</dd>
				</dl>
                
                
                
                
                
                
                        </div>
